package com.app.micaihu.bean.topic;

import android.text.TextUtils;

import com.app.micaihu.bean.news.ShareBean;
import com.app.micaihu.configure.TypeConstant;

/**
 * Created by Guo on 2016/9/8.
 *
 * 话题 的头部 bean类
 */
public class TopicInfo extends ShareBean {

    private String topicId;
    private String title;
    private String banner;
    private String desc;
    private String commentNum;
    private String isAttention; //是否已关注 1是 0否
    private String thumb;//缩略图

    public TopicInfo(){
        //默认分享类型为话题类型
        this.shareType = TypeConstant.SHARE_TYPE_TOPIC;
    }


    public String getTopicId() {
        return topicId;
    }

    public void setTopicId(String topicId) {
        this.topicId = topicId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBanner() {
        return banner;
    }

    public void setBanner(String banner) {
        this.banner = banner;
    }

    public String getThumb() {
        return thumb;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(String commentNum) {
        this.commentNum = commentNum;
    }

    public boolean getIsAttention() {
        return TextUtils.equals("1",isAttention);
    }

    public void setIsAttention(String isAttention) {
        this.isAttention = isAttention;
    }

}
